//
//  ImageViewButton.m
//  03_Work
//
//  Created by dllo on 16/7/18.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "ImageViewButton.h"

@implementation ImageViewButton
+ (UIImageView *)createImageViewButtonFrame:(CGRect)frame view:(UIView *)view image:(UIImage *)image tap:(UITapGestureRecognizer *)tap {
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:frame];
    UIImage *buttonImage = image;
    [imageView setImage:buttonImage];
    imageView.userInteractionEnabled = YES;
    [imageView addGestureRecognizer:tap];
    return imageView;
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
